class IndexController < ApplicationController
  before_filter :user_authorize, :except =>[:login,:validate_user]
  before_filter :sys_before_log
  #before_filter :privilege_filter


  def index
    if session[:user_type] == nil
      redirect_to '/index/login'
    else
      @menus = getMenus()
    end
  end

  def getMenus
    logger.info "------------------index--getMenus----------------------"
    roleId = session[:role_id]

    #这是新形势的菜单，先抓取模块，再一条条的抓取详细的菜单。
    #总菜单
    #totalMenuArray <-- moduleMenuHash <-- subMenuArray <-- subMenuHash
    totalMenuArray = Array.new
    rolesPrivilegeDetails = RolesPrivilegeDetail.find(:all,:include=>[:module],:select=>"DISTINCT rpd.module_id",:conditions=>["p.parent_id = 0"],:joins=>" as rpd left join privileges as p on rpd.role_id = #{roleId} AND rpd.is_locked = 0 AND rpd.module_id = p.id",:order=>"p.sort_id")
    rolesPrivilegeDetails.each do |sysModule|
      moduleMenuHash = Hash.new
      moduleMenuHash[:name] = sysModule.module.name
      moduleMenuHash[:image] = '/images/system/plugin.gif'
      moduleMenuHash[:leaf] = false
      #开始生成菜单
      #roleMenus = RolesPrivilegeDetail.find(:all,:select=>"DISTINCT menu_id",:conditions=>["module_id = ? AND is_locked = 0 AND role_id = ?",sysModule.module_id,roleId],:order=>"sort_id")
      roleMenus = RolesPrivilegeDetail.find(:all,:select=>"DISTINCT rpd.menu_id",:conditions=>["rpd.module_id = ? AND rpd.is_locked = 0 AND rpd.role_id = ?",sysModule.module_id,roleId],:joins=>"as rpd left join privileges as p on rpd.menu_id = p.id",:order=>"p.sort_id")
      subMenuArray = Array.new
      roleMenus.each do |roleMenu|
        subMenuHash = Hash.new
        subMenuHash[:id] = roleMenu.menu.id
        subMenuHash[:text] = roleMenu.menu.name
        subMenuHash[:url] = "#{roleMenu.menu.sys_controller.name}/#{roleMenu.menu.sys_action.name}"
        subMenuHash[:icon] = '/images/system/plugin.gif'
        subMenuHash[:leaf] = true
        subMenuArray << subMenuHash
        logger.info "#{roleMenu.menu.sys_controller.name}/#{roleMenu.menu.sys_action.name}"
      end
      moduleMenuHash[:children] = subMenuArray

      totalMenuArray << moduleMenuHash
    end
    logger.info "totalMenuArray............................."
    menus = totalMenuArray.to_json
    return menus
  end

  def login
    #@article_standard = Article.find(1)
  end
  
  #用户登录时的验证
  def validate_user
    begin
      userType = params[:user_type]
      loginId = params[:login_id]
      password = params[:password]
      
      if userType == "供应商"
        vendor = Vendor.find(:first,:conditions => ["login_id = ? AND password = ? AND is_locked <> 1",loginId,password])
        if vendor == nil
          info="登录失败，请确认用户名、密码及用户类型！"
        else
          session[:user_type] = 'vendor'
          session[:vendor_id] = vendor.id
          session[:vendor_name] = vendor.company_name
          session[:auditing_status] = vendor.auditing_status
          
          info="success"
        end
      elsif userType == "教职工用户"
        applicant = Applicant.find(:first,:conditions => ["login_id = ? AND password = ? AND is_locked <> 1",loginId,password])

        if applicant == nil
          info="登录失败，请确认用户名、密码及用户类型！"
        else
          session[:user_type] = 'applicant'
          session[:applicant_id] = applicant.id
          session[:applicant_name] = applicant.name
          session[:role_id] = applicant.role_id
          session[:department_name] = applicant.department.name
          session[:department_id] = applicant.department.id
          session[:auditing_status] = applicant.auditing_status
          manager = applicant.department.manager

          if manager
            if applicant.id == manager.id
              session[:is_dept_manager] = 'yes'
            else
              session[:is_dept_manager] = 'no'
            end
          else
            session[:is_dept_manager] = 'no'
          end

          info="success"
        end
      elsif  userType == "管理部门用户"
        auditor = Auditor.find(:first,:conditions => ["login_id = ? AND password = ? AND is_locked <> 1",loginId,password])
        if auditor == nil
          info="登录失败，请确认用户名、密码及用户类型！"
        else
          session[:user_type] = 'auditor'
          session[:auditor_id] = auditor.id
          session[:auditor_name] = auditor.name
          session[:role_id] = auditor.role_id
          session[:department_name] = auditor.department.name
          session[:department_id] = auditor.department.id
          session[:auditing_status] = auditor.auditing_status
          session[:is_admin] = auditor.is_admin
          session[:is_chief] = auditor.is_chief
          session[:auditor_type] = auditor.auditor_type
          session[:unit_price_ceiling] = auditor.unit_price_ceiling
          session[:amount_ceiling] = auditor.amount_ceiling
          info="success"
        end
      else
        info="登录失败，请确认用户名、密码及用户类型！"
      end
      
      result = "{success:true,info:'#{info}'}"
      logger.info result
      render :text=>result, :layout=>false
    rescue Exception => e
      logger.info "----------------------Exception--------------------------"
      logger.info e
    end
  end

  #退出系统
  def logout
    reset_session
    info="退出成功"
    result = "{success:true,info:'#{info}'}"
    render :text=>result, :layout=>false
  end


  private

  @@menuMap = {
    #申购者--启用
    1 => [
      #      # === 产品库 ===
      #      { :id => 1, :name => '产品库', :image => '/images/system/plugin.gif',
      #        :url => 'products', :qtip => '产品库', :leaf => false,
      #        :children => [
      #          # --- 部门管理 ---
      #          { :id => 10, :name => '产品浏览', :image => '/images/system/plugin.gif',
      #            :url => '/product/productListForApplicant', :qtip => '产品浏览', :leaf => true
      #          }
      #        ]
      #      },
      # === 申购单 ===
      { :id => 2, :name => '申购单', :image => '/images/system/plugin.gif',
        :url => 'purchases', :qtip => '申购单', :leaf => false,
        :children => [
          # --- 所有申购单 ---
          { :id => 20, :name => '所有申购单', :image => '/images/system/plugin.gif',
            :url => 'purchase/purchaseListForApplicant?auditing_status=all', :qtip => '所有申购单', :leaf => true
          },
          # --- 等待部门审批 ---
          { :id => 21, :name => '等待部门审批', :image => '/images/system/plugin.gif',
            :url => 'purchase/purchaseListForApplicant?auditing_status=0', :qtip => '等待部门审批', :leaf => true
          },
          # --- 等待设备科审批 ---
          { :id => 22, :name => '等待设备科审批', :image => '/images/system/plugin.gif',
            :url => 'purchase/purchaseListForApplicant?auditing_status=1', :qtip => '等待设备科审批', :leaf => true
          },
          # --- 等待设备科审批 ---
          { :id => 25, :name => '等待房产办审批', :image => '/images/system/plugin.gif',
            :url => 'purchase/purchaseListForApplicant?auditing_status=4', :qtip => '等待房产办审批', :leaf => true
          },
          # --- 我的申购单(通过) ---
          { :id => 23, :name => '已通过申购单', :image => '/images/system/plugin.gif',
            :url => 'purchase/purchaseListForApplicant?auditing_status=2', :qtip => '已通过申购单', :leaf => true
          },
          # --- 我的申购单(驳回) ---
          { :id => 24, :name => '已驳回申购单', :image => '/images/system/plugin.gif',
            :url => 'purchase/purchaseListForApplicant?auditing_status=3', :qtip => '已驳回申购单', :leaf => true
          }
        ]
      },

      #      # === 我的采购 ===
      #      { :id => 3, :name => '我的采购', :image => '/images/system/plugin.gif',
      #        :url => 'purchases_by_search', :qtip => '我的采购', :leaf => false,
      #        :children => [
      #          # --- 我的申购单 ---
      #          { :id => 30, :name => '所有', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=all', :qtip => '所有', :leaf => true
      #          },
      #          # --- 待发布竞价信息 ---
      #          { :id => 31, :name => '待发布竞价信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=audited', :qtip => '待发布竞价信息', :leaf => true
      #          },
      #          # --- 已发布竞价信息 ---
      #          { :id => 32, :name => '已发布竞价信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=released', :qtip => '已发布竞价信息', :leaf => true
      #          },
      #          # --- 竞价无效信息 ---
      #          { :id => 33, :name => '竞价无效信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=failure', :qtip => '竞价无效信息', :leaf => true
      #          },
      #          # --- 初选竞价供货商 ---
      #          { :id => 34, :name => '初选竞价供货商', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=primary', :qtip => '初选竞价供货商', :leaf => true
      #          },
      #          # --- 竞价未成信息 ---
      #          { :id => 312, :name => '竞价未成信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=terminated', :qtip => '竞价未成信息', :leaf => true
      #          },
      #          # --- 审批中竞价信息 ---
      #          { :id => 35, :name => '审批中竞价信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=auditprimary', :qtip => '审批中竞价信息', :leaf => true
      #          },
      #          # --- 审批未通过---
      #          { :id => 36, :name => '审批未通过', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=reject', :qtip => '审批未通过', :leaf => true
      #          },
      #          # --- 审批初选通过，验收设备 ---
      #          { :id => 37, :name => '审批通过,验收设备', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=pass', :qtip => '验收设备', :leaf => true
      #          },
      #          # --- 验收未通过 ---
      #          { :id => 38, :name => '验收未通过', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=failure_to_acceptance', :qtip => '验收未通过', :leaf => true
      #          },
      #          # --- 到货设备入库 ---
      #          { :id => 39, :name => '到货设备入库', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=for_entry', :qtip => '到货设备入库', :leaf => true
      #          },
      #          # --- 到货设备报账 ---
      #          { :id => 310, :name => '到货设备报账', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=for_account', :qtip => '到货设备报账', :leaf => true
      #          },
      #          # --- 已完成信息 ---
      #          { :id => 311, :name => '已完成信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForApplicantBySearch?search_type=complete', :qtip => '已完成信息', :leaf => true
      #          }
      #        ]
      #      },
      # === 个人信息 ===
      { :id => 4, :name => '个人信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '个人信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 40, :name => '我的信息', :image => '/images/system/plugin.gif',
            :url => '/applicant/applicantListForApplicant', :qtip => '我的信息', :leaf => true
          }
        ]
      }
    ],
    # ******** 审批人--启用 *********************************************************
    2 => [
      # === 产品库 ===
      #      { :id => 1, :name => '产品库', :image => '/images/system/plugin.gif',
      #        :url => 'office', :qtip => '产品库', :leaf => false,
      #        :children => [
      ##          #--- 产品审批 ---
      ##          { :id => 11, :name => '产品审批', :image => '/images/system/plugin.gif',
      ##            :url => '/product/productListForAuditor', :qtip => '产品审批', :leaf => true
      ##          },
      #          #--- 产品浏览 ---
      #          { :id => 12, :name => '产品浏览', :image => '/images/system/plugin.gif',
      #            :url => '/product/productList', :qtip => '产品浏览', :leaf => true
      #          }
      #        ]
      #      },
      # === 申购单 ===
      { :id => 2, :name => '申购单', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '申购单', :leaf => false,
        :children => [
          # --- 等待审批申购单 ---
          { :id => 20, :name => '等待审批申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=all', :qtip => '等待审批申购单', :leaf => true
          },
          # --- 审查大额申购单 
          { :id => 21, :name => '审查大额申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=3', :qtip => '审查大额申购单', :leaf => true
          },
          # --- 审批通过申购单 ---
          { :id => 22, :name => '审批通过申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=1', :qtip => '审批通过申购单', :leaf => true
          },
          # --- 审批驳回申购单 ---
          { :id => 23, :name => '审批驳回申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=0', :qtip => '审批驳回申购单', :leaf => true
          }
        ]
      },
      #      { :id => 3, :name => '采购管理', :image => '/images/system/plugin.gif',
      #        :url => 'purchases_manager', :qtip => '我的采购', :leaf => false,
      #        :children => [
      #          # --- 所有竞价信息 ---
      #          { :id => 30, :name => '所有竞价信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=all', :qtip => '所有竞价信息', :leaf => true
      #          },
      #          # --- 待发布竞价信息 ---
      #          { :id => 31, :name => '待发布竞价信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=audited', :qtip => '待发布竞价信息', :leaf => true
      #          },
      #          # --- 已发布竞价信息 ---
      #          { :id => 32, :name => '已发布竞价信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=released', :qtip => '已发布竞价信息', :leaf => true
      #          },
      #          # --- 竞价无效信息 ---
      #          { :id => 33, :name => '竞价无效信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=failure', :qtip => '竞价无效信息', :leaf => true
      #          },
      #          # --- 初选竞价供货商 ---
      #          { :id => 34, :name => '初选竞价供货商', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=primary', :qtip => '初选竞价供货商', :leaf => true
      #          },
      #          # --- 竞价未成信息 ---
      #          { :id => 35, :name => '竞价未成信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=terminated', :qtip => '竞价未成信息', :leaf => true
      #          },
      #          # --- 审批初选结果---
      #          { :id => 36, :name => '审批初选结果', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=auditprimary', :qtip => '审批初选结果', :leaf => true
      #          },
      #          # --- 审批未通过 初选审批未通过---
      #          { :id => 37, :name => '审批未通过', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=reject', :qtip => '审批未通过', :leaf => true
      #          },
      #          # --- 审批初选通过,验收设备 ---
      #          { :id => 38, :name => '审批通过,验收设备', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=pass', :qtip => '审批通过,验收设备', :leaf => true
      #          },
      #          # --- 验收未通过 ---
      #          { :id => 39, :name => '验收未通过', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=failure_to_acceptance', :qtip => '验收未通过', :leaf => true
      #          },
      #          # --- 到货设备入库 ---
      #          { :id => 310, :name => '等待入库', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=for_entry', :qtip => '等待入库', :leaf => true
      #          },
      #          # --- 到货设备报账 ---
      #          { :id => 311, :name => '等待报账', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=for_account', :qtip => '等待报账', :leaf => true
      #          },
      #          # --- 验收通过 ---
      #          { :id => 312, :name => '验收通过', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=complete', :qtip => '验收通过', :leaf => true
      #          }
      #        ]
      #      },
      # === 人员管理 ===
      { :id => 4, :name => '人员管理', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '人员管理', :leaf => false,
        :children => [
          # --- 审批人管理 ---
          { :id => 41, :name => '审批人管理', :image => '/images/system/plugin.gif',
            :url => '/auditor/auditorList', :qtip => '审批人管理', :leaf => true
          },
          # --- 申购人管理 ---
          { :id => 42, :name => '申购人管理', :image => '/images/system/plugin.gif',
            :url => '/applicant/applicantList', :qtip => '申购人管理', :leaf => true
          },
          # --- 供应商管理 ---
          #          { :id => 43, :name => '供应商管理', :image => '/images/system/plugin.gif',
          #            :url => '/vendor/vendorList', :qtip => '供应商管理', :leaf => true
          #          }
        ]
      },
      # === 后台管理 ===
      { :id => 5, :name => '后台管理', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '后台管理', :leaf => false,
        :children => [

          # --- 制度管理 ---
          { :id => 52, :name => '制度管理', :image => '/images/system/plugin.gif',
            :url => '/article/articleList', :qtip => '制度管理', :leaf => true
          },
          # --- 部门管理 ---
          { :id => 53, :name => '部门管理', :image => '/images/system/plugin.gif',
            :url => '/department/departmentList', :qtip => '部门管理', :leaf => true
          },
          # --- 驳回原因管理 ---
          { :id => 54, :name => '驳回原因管理', :image => '/images/system/plugin.gif',
            :url => '/reject/rejectList', :qtip => '驳回原因管理', :leaf => true
          }
        ]
      },
      # === 个人信息 ===
      { :id => 6, :name => '个人信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '个人信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 60, :name => '我的信息', :image => '/images/system/plugin.gif',
            :url => '/auditor/auditorListForAuditor', :qtip => '我的信息', :leaf => true
          }
        ]
      }
    ],
    # ******** 供应商--启用 ***********************************************************
    3 => [
      # === 产品库 ===
      { :id => 1, :name => '产品库', :image => '/images/system/plugin.gif',
        :url => 'educationalAdministration', :qtip => '产品库', :leaf => false,
        :children => [

          { :id => 10, :name => '我的产品库', :image => '/images/system/plugin.gif',
            :url => '/product/productListForVendor', :qtip => '我的产品库', :leaf => true
          }
        ]
      },
      # === 供应商竞价 ===
      { :id => 2, :name => '供应商竞价', :image => '/images/system/plugin.gif',
        :url => 'vendor_bidding', :qtip => '供应商竞价', :leaf => false,
        :children => [
          # --- 竞价信息 ---
          { :id => 21, :name => '竞价信息', :image => '/images/system/plugin.gif',
            :url => 'purchase/purchaseListForVendorBySearch?search_type=bidding', :qtip => '竞价信息', :leaf => true
          },
          # --- 已参与竞价信息 ---
          { :id => 22, :name => '已参与竞价信息', :image => '/images/system/plugin.gif',
            :url => 'purchase/purchaseListForVendorBySearch?search_type=participation', :qtip => '已参与竞价信息', :leaf => true
          },
          # --- 竞价成功信息 ---
          { :id => 23, :name => '竞价成功信息', :image => '/images/system/plugin.gif',
            :url => 'purchase/purchaseListForVendorBySearch?search_type=win', :qtip => '竞价成功信息', :leaf => true
          },
          # --- 竞价未成功信息 ---
          { :id => 24, :name => '竞价未成功信息', :image => '/images/system/plugin.gif',
            :url => 'purchase/purchaseListForVendorBySearch?search_type=failure', :qtip => '竞价未成功信息', :leaf => true
          }
          # --- 其他二级菜单... ---
        ]
      },
      # === 个人信息 ===
      { :id => 3, :name => '个人信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '个人信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 30, :name => '我的信息', :image => '/images/system/plugin.gif',
            :url => '/vendor/vendorListForVendor', :qtip => '我的信息', :leaf => true
          }
        ]
      },
      { :id => 4, :name => '注册信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '注册信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 40, :name => '注册信息', :image => '/images/system/plugin.gif',
            :url => '/vendor/registerInformation', :qtip => '注册信息', :leaf => true
          }
        ]
      }
      #      # === 消息管理 ===
      #      { :id => 4, :name => '消息管理', :image => '/images/system/plugin.gif',
      #        :url => 'products', :qtip => '消息管理', :leaf => false,
      #        :children => [
      #          # --- 我的信息 ---
      #          { :id => 40, :name => '个人消息', :image => '/images/system/plugin.gif',
      #            :url => '/vendor/applicantInformation', :qtip => '个人消息', :leaf => true
      #          }
      #        ]
      #      }
    ],

    # ******** 申购人--禁用 ***********************************************************
    4 => [
      # === 个人信息 ===
      { :id => 1, :name => '个人信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '个人信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 10, :name => '我的信息', :image => '/images/system/plugin.gif',
            :url => '/applicant/applicantListForApplicant', :qtip => '我的信息', :leaf => true
          }
        ]
      }
    ],

    # ******** 审批人--禁用 ***********************************************************
    5 => [
      # === 个人信息 ===
      { :id => 1, :name => '个人信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '个人信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 10, :name => '我的信息', :image => '/images/system/plugin.gif',
            :url => '/auditor/auditorListForAuditor', :qtip => '我的信息', :leaf => true
          }
        ]
      }
    ],
    # ******** 供应商--禁用或未审批 ***********************************************************
    6 => [
      # === 个人信息 ===
      { :id => 1, :name => '个人信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '个人信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 10, :name => '我的信息', :image => '/images/system/plugin.gif',
            :url => '/vendor/vendorListForVendor', :qtip => '我的信息', :leaf => true
          }
        ]
      },
      { :id => 2, :name => '注册信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '注册信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 20, :name => '注册信息', :image => '/images/system/plugin.gif',
            :url => '/vendor/registerInformation', :qtip => '注册信息', :leaf => true
          }
        ]
      }
    ],
    # ******** 审批人--普通审批人 *********************************************************
    7 => [
      #      # === 产品库 ===
      #      { :id => 1, :name => '产品库', :image => '/images/system/plugin.gif',
      #        :url => 'office', :qtip => '产品库', :leaf => false,
      #        :children => [
      #          # --- 产品审批 ---
      #          { :id => 11, :name => '产品审批', :image => '/images/system/plugin.gif',
      #            :url => '/product/productListForAuditor', :qtip => '产品审批', :leaf => true
      #          },
      #          # --- 收件箱 ---
      #          { :id => 12, :name => '产品浏览', :image => '/images/system/plugin.gif',
      #            :url => '/product/productList', :qtip => '产品浏览', :leaf => true
      #          }
      #        ]
      #      },
      # === 申购单 ===
      { :id => 2, :name => '申购单', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '申购单', :leaf => false,
        :children => [
          # --- 等待审批申购单 ---
          { :id => 21, :name => '等待审批申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=all', :qtip => '等待审批申购单', :leaf => true
          },
          # --- 审查大额申购单
          { :id => 22, :name => '审查大额申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=3', :qtip => '审查大额申购单', :leaf => true
          },
          # --- 审批通过申购单 ---
          { :id => 23, :name => '审批通过申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=1', :qtip => '审批通过申购单', :leaf => true
          },
          # --- 审批驳回申购单 ---
          { :id => 24, :name => '审批驳回申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=0', :qtip => '审批驳回申购单', :leaf => true
          }
        ]
      },
      #      { :id => 3, :name => '采购管理', :image => '/images/system/plugin.gif',
      #        :url => 'purchases_manager', :qtip => '我的采购', :leaf => false,
      #        :children => [
      #          # --- 所有竞价信息 ---
      #          { :id => 30, :name => '所有竞价信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=all', :qtip => '所有竞价信息', :leaf => true
      #          },
      #          # --- 待发布竞价信息 ---
      #          { :id => 31, :name => '待发布竞价信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=audited', :qtip => '待发布竞价信息', :leaf => true
      #          },
      #          # --- 已发布竞价信息 ---
      #          { :id => 32, :name => '已发布竞价信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=released', :qtip => '已发布竞价信息', :leaf => true
      #          },
      #          # --- 竞价无效信息 ---
      #          { :id => 33, :name => '竞价无效信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=failure', :qtip => '竞价无效信息', :leaf => true
      #          },
      #          # --- 初选竞价供货商 ---
      #          { :id => 34, :name => '初选竞价供货商', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=primary', :qtip => '初选竞价供货商', :leaf => true
      #          },
      #          # --- 竞价未成信息 ---
      #          { :id => 35, :name => '竞价未成信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=terminated', :qtip => '竞价未成信息', :leaf => true
      #          },
      #          # --- 审批初选结果---
      #          { :id => 36, :name => '审批初选结果', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=auditprimary', :qtip => '审批初选结果', :leaf => true
      #          },
      #          # --- 审批未通过 初选审批未通过---
      #          { :id => 37, :name => '审批未通过', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=reject', :qtip => '审批未通过', :leaf => true
      #          },
      #          # --- 审批初选通过,验收设备 ---
      #          { :id => 38, :name => '审批通过,验收设备', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=pass', :qtip => '审批通过,验收设备', :leaf => true
      #          },
      #          # --- 验收未通过 ---
      #          { :id => 39, :name => '验收未通过', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=failure_to_acceptance', :qtip => '验收未通过', :leaf => true
      #          },
      #          # --- 到货设备入库 ---
      #          { :id => 310, :name => '等待入库', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=for_entry', :qtip => '等待入库', :leaf => true
      #          },
      #          # --- 到货设备报账 ---
      #          { :id => 311, :name => '等待报账', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=for_account', :qtip => '等待报账', :leaf => true
      #          },
      #          # --- 验收通过 ---
      #          { :id => 312, :name => '验收通过', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=complete', :qtip => '验收通过', :leaf => true
      #          }
      #        ]
      #      },
      # === 人员管理 ===
      { :id => 4, :name => '人员管理', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '人员管理', :leaf => false,
        :children => [
          
          # --- 申购人管理 ---
          { :id => 42, :name => '申购人管理', :image => '/images/system/plugin.gif',
            :url => '/applicant/applicantList', :qtip => '申购人管理', :leaf => true
          },
          # --- 供应商管理 ---
          #          { :id => 43, :name => '供应商管理', :image => '/images/system/plugin.gif',
          #            :url => '/vendor/vendorList', :qtip => '供应商管理', :leaf => true
          #          }
        ]
      },
      # === 后台管理 ===
      { :id => 5, :name => '后台管理', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '后台管理', :leaf => false,
        :children => [

          # --- 制度管理 ---
          { :id => 52, :name => '制度管理', :image => '/images/system/plugin.gif',
            :url => '/article/articleList', :qtip => '制度管理', :leaf => true
          },
          # --- 部门管理 ---
          { :id => 53, :name => '部门管理', :image => '/images/system/plugin.gif',
            :url => '/department/departmentList', :qtip => '部门管理', :leaf => true
          },
          # --- 驳回原因管理 ---
          { :id => 54, :name => '驳回原因管理', :image => '/images/system/plugin.gif',
            :url => '/reject/rejectList', :qtip => '驳回原因管理', :leaf => true
          }
        ]
      },
      # === 个人信息 ===
      { :id => 6, :name => '个人信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '个人信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 60, :name => '我的信息', :image => '/images/system/plugin.gif',
            :url => '/auditor/auditorListForAuditor', :qtip => '我的信息', :leaf => true
          }
        ]
      }
    ],
    # ******** 房产审批人--普通审批人 *********************************************************
    8 => [
      # === 申购单 ===
      { :id => 2, :name => '申购单', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '申购单', :leaf => false,
        :children => [
          # --- 等待审批申购单 ---
          { :id => 21, :name => '等待审批申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=all', :qtip => '等待审批申购单', :leaf => true
          },
          # --- 审批通过申购单 ---
          { :id => 22, :name => '审批通过申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=1', :qtip => '审批通过申购单', :leaf => true
          },
          # --- 审批驳回申购单 ---
          { :id => 23, :name => '审批驳回申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=0', :qtip => '审批驳回申购单', :leaf => true
          }
        ]
      },
      # === 人员管理 ===
      { :id => 4, :name => '人员管理', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '人员管理', :leaf => false,
        :children => [

          # --- 申购人管理 ---
          { :id => 42, :name => '申购人管理', :image => '/images/system/plugin.gif',
            :url => '/applicant/applicantList', :qtip => '申购人管理', :leaf => true
          },
          # --- 供应商管理 ---
          #          { :id => 43, :name => '供应商管理', :image => '/images/system/plugin.gif',
          #            :url => '/vendor/vendorList', :qtip => '供应商管理', :leaf => true
          #          }
        ]
      },
      # === 后台管理 ===
      { :id => 5, :name => '后台管理', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '后台管理', :leaf => false,
        :children => [

          # --- 制度管理 ---
          { :id => 52, :name => '制度管理', :image => '/images/system/plugin.gif',
            :url => '/article/articleList', :qtip => '制度管理', :leaf => true
          },
          # --- 部门管理 ---
          { :id => 53, :name => '部门管理', :image => '/images/system/plugin.gif',
            :url => '/department/departmentList', :qtip => '部门管理', :leaf => true
          },
          # --- 驳回原因管理 ---
          { :id => 54, :name => '驳回原因管理', :image => '/images/system/plugin.gif',
            :url => '/reject/rejectList', :qtip => '驳回原因管理', :leaf => true
          }
        ]
      },
      # === 个人信息 ===
      { :id => 6, :name => '个人信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '个人信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 60, :name => '我的信息', :image => '/images/system/plugin.gif',
            :url => '/auditor/auditorListForAuditor', :qtip => '我的信息', :leaf => true
          }
        ]
      }
    ],
    # ******** 房产审批人--超级审批人 *********************************************************
    9 => [
      # === 申购单 ===
      { :id => 2, :name => '申购单', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '申购单', :leaf => false,
        :children => [
          # --- 等待审批申购单 ---
          { :id => 21, :name => '等待审批申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=all', :qtip => '等待审批申购单', :leaf => true
          },
          # --- 审批通过申购单 ---
          { :id => 22, :name => '审批通过申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=1', :qtip => '审批通过申购单', :leaf => true
          },
          # --- 审批驳回申购单 ---
          { :id => 23, :name => '审批驳回申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=0', :qtip => '审批驳回申购单', :leaf => true
          }
        ]
      },
      # === 人员管理 ===
      { :id => 4, :name => '人员管理', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '人员管理', :leaf => false,
        :children => [
          # --- 审批人管理 ---
          { :id => 41, :name => '审批人管理', :image => '/images/system/plugin.gif',
            :url => '/auditor/auditorList', :qtip => '审批人管理', :leaf => true
          },
          # --- 申购人管理 ---
          { :id => 42, :name => '申购人管理', :image => '/images/system/plugin.gif',
            :url => '/applicant/applicantList', :qtip => '申购人管理', :leaf => true
          }
        ]
      },
      # === 后台管理 ===
      { :id => 5, :name => '后台管理', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '后台管理', :leaf => false,
        :children => [

          # --- 制度管理 ---
          { :id => 52, :name => '制度管理', :image => '/images/system/plugin.gif',
            :url => '/article/articleList', :qtip => '制度管理', :leaf => true
          },
          # --- 部门管理 ---
          { :id => 53, :name => '部门管理', :image => '/images/system/plugin.gif',
            :url => '/department/departmentList', :qtip => '部门管理', :leaf => true
          },
          # --- 驳回原因管理 ---
          { :id => 54, :name => '驳回原因管理', :image => '/images/system/plugin.gif',
            :url => '/reject/rejectList', :qtip => '驳回原因管理', :leaf => true
          }
        ]
      },
      # === 个人信息 ===
      { :id => 6, :name => '个人信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '个人信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 60, :name => '我的信息', :image => '/images/system/plugin.gif',
            :url => '/auditor/auditorListForAuditor', :qtip => '我的信息', :leaf => true
          }
        ]
      }
    ],
    # ******** 审批人--处长（兼管理员型） *********************************************************
    10 => [
      # === 产品库 ===
      #      { :id => 1, :name => '产品库', :image => '/images/system/plugin.gif',
      #        :url => 'office', :qtip => '产品库', :leaf => false,
      #        :children => [
      ##          #--- 产品审批 ---
      ##          { :id => 11, :name => '产品审批', :image => '/images/system/plugin.gif',
      ##            :url => '/product/productListForAuditor', :qtip => '产品审批', :leaf => true
      ##          },
      #          #--- 产品浏览 ---
      #          { :id => 12, :name => '产品浏览', :image => '/images/system/plugin.gif',
      #            :url => '/product/productList', :qtip => '产品浏览', :leaf => true
      #          }
      #        ]
      #      },
      # === 申购单 ===
      { :id => 2, :name => '申购单', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '申购单', :leaf => false,
        :children => [
          # --- 等待审批申购单 ---
          { :id => 20, :name => '等待审批申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=all', :qtip => '等待审批申购单', :leaf => true
          },
          # --- 审批通过申购单 ---
          { :id => 22, :name => '审批通过申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=1', :qtip => '审批通过申购单', :leaf => true
          },
          # --- 审批驳回申购单 ---
          { :id => 23, :name => '审批驳回申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=0', :qtip => '审批驳回申购单', :leaf => true
          }
        ]
      },
      #      { :id => 3, :name => '采购管理', :image => '/images/system/plugin.gif',
      #        :url => 'purchases_manager', :qtip => '我的采购', :leaf => false,
      #        :children => [
      #          # --- 所有竞价信息 ---
      #          { :id => 30, :name => '所有竞价信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=all', :qtip => '所有竞价信息', :leaf => true
      #          },
      #          # --- 待发布竞价信息 ---
      #          { :id => 31, :name => '待发布竞价信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=audited', :qtip => '待发布竞价信息', :leaf => true
      #          },
      #          # --- 已发布竞价信息 ---
      #          { :id => 32, :name => '已发布竞价信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=released', :qtip => '已发布竞价信息', :leaf => true
      #          },
      #          # --- 竞价无效信息 ---
      #          { :id => 33, :name => '竞价无效信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=failure', :qtip => '竞价无效信息', :leaf => true
      #          },
      #          # --- 初选竞价供货商 ---
      #          { :id => 34, :name => '初选竞价供货商', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=primary', :qtip => '初选竞价供货商', :leaf => true
      #          },
      #          # --- 竞价未成信息 ---
      #          { :id => 35, :name => '竞价未成信息', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=terminated', :qtip => '竞价未成信息', :leaf => true
      #          },
      #          # --- 审批初选结果---
      #          { :id => 36, :name => '审批初选结果', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=auditprimary', :qtip => '审批初选结果', :leaf => true
      #          },
      #          # --- 审批未通过 初选审批未通过---
      #          { :id => 37, :name => '审批未通过', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=reject', :qtip => '审批未通过', :leaf => true
      #          },
      #          # --- 审批初选通过,验收设备 ---
      #          { :id => 38, :name => '审批通过,验收设备', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=pass', :qtip => '审批通过,验收设备', :leaf => true
      #          },
      #          # --- 验收未通过 ---
      #          { :id => 39, :name => '验收未通过', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=failure_to_acceptance', :qtip => '验收未通过', :leaf => true
      #          },
      #          # --- 到货设备入库 ---
      #          { :id => 310, :name => '等待入库', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=for_entry', :qtip => '等待入库', :leaf => true
      #          },
      #          # --- 到货设备报账 ---
      #          { :id => 311, :name => '等待报账', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=for_account', :qtip => '等待报账', :leaf => true
      #          },
      #          # --- 验收通过 ---
      #          { :id => 312, :name => '验收通过', :image => '/images/system/plugin.gif',
      #            :url => 'purchase/purchaseListForAuditorBySearch?search_type=complete', :qtip => '验收通过', :leaf => true
      #          }
      #        ]
      #      },
      # === 人员管理 ===
      { :id => 4, :name => '人员管理', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '人员管理', :leaf => false,
        :children => [
          # --- 审批人管理 ---
          { :id => 41, :name => '审批人管理', :image => '/images/system/plugin.gif',
            :url => '/auditor/auditorList', :qtip => '审批人管理', :leaf => true
          },
          # --- 申购人管理 ---
          { :id => 42, :name => '申购人管理', :image => '/images/system/plugin.gif',
            :url => '/applicant/applicantList', :qtip => '申购人管理', :leaf => true
          },
          # --- 供应商管理 ---
          #          { :id => 43, :name => '供应商管理', :image => '/images/system/plugin.gif',
          #            :url => '/vendor/vendorList', :qtip => '供应商管理', :leaf => true
          #          }
        ]
      },
      # === 后台管理 ===
      { :id => 5, :name => '后台管理', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '后台管理', :leaf => false,
        :children => [

          # --- 制度管理 ---
          { :id => 52, :name => '制度管理', :image => '/images/system/plugin.gif',
            :url => '/article/articleList', :qtip => '制度管理', :leaf => true
          },
          # --- 部门管理 ---
          { :id => 53, :name => '部门管理', :image => '/images/system/plugin.gif',
            :url => '/department/departmentList', :qtip => '部门管理', :leaf => true
          },
          # --- 驳回原因管理 ---
          { :id => 54, :name => '驳回原因管理', :image => '/images/system/plugin.gif',
            :url => '/reject/rejectList', :qtip => '驳回原因管理', :leaf => true
          }
        ]
      },
      # === 个人信息 ===
      { :id => 6, :name => '个人信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '个人信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 60, :name => '我的信息', :image => '/images/system/plugin.gif',
            :url => '/auditor/auditorListForAuditor', :qtip => '我的信息', :leaf => true
          }
        ]
      }
    ],
    
    # ******** 审批人--处长(非管理员) *********************************************************
    11 => [
      # === 产品库 ===
      #      { :id => 1, :name => '产品库', :image => '/images/system/plugin.gif',
      #        :url => 'office', :qtip => '产品库', :leaf => false,
      #        :children => [
      ##          #--- 产品审批 ---
      ##          { :id => 11, :name => '产品审批', :image => '/images/system/plugin.gif',
      ##            :url => '/product/productListForAuditor', :qtip => '产品审批', :leaf => true
      ##          },
      #          #--- 产品浏览 ---
      #          { :id => 12, :name => '产品浏览', :image => '/images/system/plugin.gif',
      #            :url => '/product/productList', :qtip => '产品浏览', :leaf => true
      #          }
      #        ]
      #      },
      # === 申购单 ===
      { :id => 2, :name => '申购单', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '申购单', :leaf => false,
        :children => [
          # --- 等待审批申购单 ---
          { :id => 20, :name => '等待审批申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=all', :qtip => '等待审批申购单', :leaf => true
          },
          # --- 审批通过申购单 ---
          { :id => 22, :name => '审批通过申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=1', :qtip => '审批通过申购单', :leaf => true
          },
          # --- 审批驳回申购单 ---
          { :id => 23, :name => '审批驳回申购单', :image => '/images/system/plugin.gif',
            :url => '/purchase/purchaseListForAuditor?auditing_status=0', :qtip => '审批驳回申购单', :leaf => true
          }
        ]
      },
      # === 人员管理 ===
      { :id => 4, :name => '人员管理', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '人员管理', :leaf => false,
        :children => [
          # --- 申购人管理 ---
          { :id => 42, :name => '申购人管理', :image => '/images/system/plugin.gif',
            :url => '/applicant/applicantList', :qtip => '申购人管理', :leaf => true
          },
          # --- 供应商管理 ---
          #          { :id => 43, :name => '供应商管理', :image => '/images/system/plugin.gif',
          #            :url => '/vendor/vendorList', :qtip => '供应商管理', :leaf => true
          #          }
        ]
      },
      # === 后台管理 ===
      { :id => 5, :name => '后台管理', :image => '/images/system/plugin.gif',
        :url => 'office', :qtip => '后台管理', :leaf => false,
        :children => [

          # --- 制度管理 ---
          { :id => 52, :name => '制度管理', :image => '/images/system/plugin.gif',
            :url => '/article/articleList', :qtip => '制度管理', :leaf => true
          },
          # --- 部门管理 ---
          { :id => 53, :name => '部门管理', :image => '/images/system/plugin.gif',
            :url => '/department/departmentList', :qtip => '部门管理', :leaf => true
          },
          # --- 驳回原因管理 ---
          { :id => 54, :name => '驳回原因管理', :image => '/images/system/plugin.gif',
            :url => '/reject/rejectList', :qtip => '驳回原因管理', :leaf => true
          }
        ]
      },
      # === 个人信息 ===
      { :id => 6, :name => '个人信息', :image => '/images/system/plugin.gif',
        :url => 'products', :qtip => '个人信息', :leaf => false,
        :children => [
          # --- 我的信息 ---
          { :id => 60, :name => '我的信息', :image => '/images/system/plugin.gif',
            :url => '/auditor/auditorListForAuditor', :qtip => '我的信息', :leaf => true
          }
        ]
      }
    ]

  }

end
